//
//  AFShortcutMethod.m
//  AFChat
//
//  Created by Void on 2018/6/21.
//  Copyright © 2018年 afei. All rights reserved.
//

#import "AFShortcutMethod.h"


UINavigationController *addNavigationController(UIViewController *viewController)
{
    UINavigationController *navC = [[UINavigationController alloc] initWithRootViewController:viewController];
    return navC;
}


void initTabBarItem(UITabBarItem *tabBarItem, NSString *tilte, NSString *image, NSString *imageHL) {
    [tabBarItem setTitle:tilte];
    [tabBarItem setImage:[UIImage imageNamed:image]];
    [tabBarItem setSelectedImage:[UIImage imageNamed:imageHL]];
}
